import os
import shutil
import signal

source_dir = "/Users/lianbin/Documents/test"
shutil.rmtree(source_dir)
# signal.raise_signal(signal.SIGTERM)
# raise Exception(
#     "deployment is not ready: {}.".format(
#         1
#     )
# )
# shutil.rmtree(source_dir)